package imgsei.wcj.com.activitimodule.ui;

import android.os.Bundle;
import android.support.annotation.Nullable;

import com.alibaba.android.arouter.facade.annotation.Autowired;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;

import butterknife.ButterKnife;
import butterknife.Unbinder;
import imgsei.wcj.com.activitimodule.R;
import imgsei.wcj.com.commonbusiness.base.activity.BaseActivity;
import imgsei.wcj.com.commonbusiness.utils.LogUtils;
import imgsei.wcj.com.commonbusiness.utils.RouteUtils;


/**
 * 活动首页
 *
 * @ author LUCKY
 * @ create date 2018/11/7 11:47
 */

@Route(path = RouteUtils.ACTIVITY_HOME)
public class MainActivity extends BaseActivity {

    private static final String TAG = "MainActivity";
    private Unbinder unbinder;
    @Autowired
    String name;


    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        unbinder = ButterKnife.bind(this);
        ARouter.getInstance().inject(this);

        LogUtils.showLogD(TAG,name);

    }



    @Override
    protected void onDestroy() {
        super.onDestroy();
        if (unbinder != null) {
            unbinder.unbind();
        }
    }
}
